all: cluster_gen cluster_render path_render

cluster_gen: renderer clustering
	cd renderer; make;
	cd clustering; make cluster_gen;
	mv clustering/cluster_gen .

cluster_render: renderer clustering
	cd renderer; make;
	cd clustering; make cluster_render;
	mv clustering/cluster_render .

path_render: renderer clustering
	cd renderer; make;
	cd clustering; make path_render;
	mv clustering/path_render .

lockexchange: cluster_gen cluster_render
	cat data/streamlines/x39y39LockEx.tra | ./cluster_gen 4.0 1 true | ./cluster_render 1.0 0.01

hurricane: cluster_gen cluster_render
	cat data/streamlines/hurricane1950_2006.tra | ./cluster_gen 30.0 1 | ./cluster_render 20.0 0.05

ocean: cluster_gen cluster_render
	cat data/streamlines/ocean_lat53_lon20.tra | ./cluster_gen 0.55 1 | ./cluster_render 1.0 0.01

newdata: cluster_gen cluster_render
	cat data/streamlines/combined.tra | ./cluster_gen 4.0 1 true | ./cluster_render 1.0 0.01

lockst: cluster_gen cluster_render
	cat data/streamlines/lockst/x029y028/combined.tra | ./cluster_gen 8.0 1 true | ./cluster_render 1.0 0.01

clean:
	cd renderer; make clean;
	cd clustering; make clean;
	- rm cluster_gen cluster_render path_render